package com.iwhalecloud.uncc.common;

import java.time.format.DateTimeFormatter;

public class PersistConstant {
    public static final String PREFIX_LOCK = "LOCK:";

    /**
     * redis key prefix
     */
    public static final String PREFIX_TASK_LOG = "TASK_LOG_";
    public static final String PREFIX_TASK_BATCH = "TASK_BATCH_";
    public static final String PREFIX_TASK_INST = "TASK_INST_";
    public static final String PREFIX_COLLECT_SERVICE = "COLLECT_SERVICE_";
    public static final String PREFIX_SERVER_RES = "SERVER_RES_";
    public static final String PREFIX_NOTIC_LOG = "NOTIC_LOG_";
    public static final String PREFIX_EVENT_RECORD = "EVENT_RECORD_";

    public static final String MSG_SEPERATOR="#";
    public static final String INSERT = "0";
    public static final String UPDATE = "1";
    public static final String DELETE = "2";

    public static final String DEFAULT_MQ_CODE = "DEFAULT_MQ_CLUSTER";
    public static final String DEFAULT_PARTITION_CODE = "10000";
    public static final String REDIS_CLUSTER_CODE="REDIS_CLUSTER_1";
    /**
     * redis key prefix
     */
    public static final String PREFIX_SYS = "COLL:";
    public static final String PREFIX_TACHE_STATUS =  PREFIX_SYS+"TACHE_STATUS:";
    public static final String PREFIX_DATA_LOG = PREFIX_SYS+"DATA_LOG:";
    public static final String PREFIX_TASK_FILE = PREFIX_SYS+"TASK_FILE:";
    public static final String PREFIX_DISTRIBUTE_FILE = PREFIX_SYS+"DISTRIBUTE_FILE:";
    public static final String PREFIX_ALARM_INFO = PREFIX_SYS+"ALARM_INFO:";
    public static final String PREFIX_ALARM_OUTPUT = PREFIX_SYS+ "ALARM_OUTPUT:";
    public static final String PREFIX_TACHE_RECORD =  PREFIX_SYS+"TACHE_RECORD:";
    public static final String PREFIX_COLLECT_COMMAND_INST = PREFIX_SYS+"COLLECT_COMMAND_INST:";
    public static final String PREFIX_COLLECT_VIR_COMMAND_INST = PREFIX_SYS+"COLLECT_VIR_COMMAND_INST:";
    public static final String PREFIX_HTTP_CMD_LOG = PREFIX_SYS+"HTTP_CMD_LOG:";
    public static final String PREFIX_RETRANSFER_LOG = PREFIX_SYS+"RETRANSFER_LOG:";

}
